from PyQt5.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QPushButton

class ImportDialog(QDialog):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setWindowTitle("导入账号")
        self.resize(300, 150)
        
        layout = QVBoxLayout(self)
        
        # 提示信息
        from PyQt5.QtWidgets import QLabel
        help_label = QLabel("使用TXT文本导入账号\n格式: 账号,密码\n每行一个账号")
        layout.addWidget(help_label)
        
        # Add buttons
        button_layout = QHBoxLayout()
        ok_button = QPushButton("确定")
        ok_button.clicked.connect(self.accept)
        cancel_button = QPushButton("取消")
        cancel_button.clicked.connect(self.reject)
        
        button_layout.addWidget(ok_button)
        button_layout.addWidget(cancel_button)
        
        layout.addLayout(button_layout)
    
    def get_import_mode(self):
        return "txt" 